const pathLib  = require('path');
const path = pathLib.resolve(__dirname,'dist');
console.log(path)
module.exports = {
    entry:'./js/index.js',
    output:{
        path,
        filename:'index.js'
    },
    mode:'development',
    module:{
		rules:[
			{
				test:/\.js?$/,
				loader:'babel-loader',
				query:{
					presets:['es2015','stage-0']
				},
				exclude:/node_modules/
			}
		]
	}
}